package com.kuang.springcloud.Service;

import com.kuang.springcloud.mapper.UserMapper;
import com.kuang.springcloud.pojo.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserService implements IUserService {
    @Resource
    UserMapper userMapper;
    @Override
    public Boolean addOne(User user) {
        return userMapper.addOne(user);
    }

    @Override
    public User selectOne(Integer uId){
        return userMapper.selectOne(uId);
    }

    @Override
    public List<User> selectAll(){
        return userMapper.selectAll();
    }
}
